System.Collections.IDictionary.Item Property

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Gets or sets the value associated with a given key. When getting a value, if this key is not found in the collection, then null is returned. When setting a value, the value replaces any existing value in the dictionary. If either the key or value are not of the correct type for this dictionary, an ArgumentException is thrown.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
private Object IDictionary.Item[
	Object key
]{ get; set;}
Visual Basic (Declaration)
Private Property System.Collections.IDictionary.Item ( _
	key As Object _
) As Object Implements IDictionary.Item
Visual C++
private:
virtual property Object^ System.Collections.IDictionary.Item[Object^ key] {
	Object^ get (Object^ key) sealed = IDictionary::Item::get;
	void set (Object^ key, Object^ value) sealed = IDictionary::Item::set;
}

Parameters

key
Object

Field Value

The value associated with the key, or null if the key was not present.

Exceptions

ExceptionCondition
System..::ArgumentExceptionkey could not be converted to TKey, or value could not be converted to TValue.

See Also